package com.dacool.http;

import java.util.HashMap;

public class UpdateOrderRequest extends BaseRequest {

	private long orderId;// true string 订单id
	private int addressId;// true string 收货地址id
	private String payMethod;
	private String markText;

	public UpdateOrderRequest setAddressId(int addressId) {
		this.addressId = addressId;
		return this;
	}

	public UpdateOrderRequest setOrderId(long orderId) {
		this.orderId = orderId;
		return this;
	}

	public UpdateOrderRequest setPayMethod(String payMethod) {
		this.payMethod = payMethod;
		return this;
	}

	public UpdateOrderRequest setMarkText(String markText) {
		this.markText = markText;
		return this;
	}

	@Override
	protected String url() {
		// TODO Auto-generated method stub
		return "updateOrder.jsn";
	}

	@Override
	protected void generateParams(HashMap<String, Object> map) {
		// TODO Auto-generated method stub
		map.put("payMethod", payMethod);
		map.put("markText", markText);
		map.put("orderId", orderId);
		map.put("addressId", addressId);
	}

}
